line_codes = ['A','B','C','D']

#source_feeds = [ 
#  '0','1','2','3','4','5','6','7','8','9',
#  'A','B','C','D','E','F','G','H','I','J','K','L','M',
#  'N','O','P','Q','R','S','T','U','V','W','X','Y','Z'
#]

password_card = [
  ['G','U','H','B','2','1'],
  ['Q','M','Q','G','I','W'],
  ['T','J','B','N','S','9'],
  ['K','5','8','X','T','0']
]


# 
# make password_car
#

#4.times do |l|
#  line = "*#{line_codes[l]}*  "
#  6.times do |r|
    #line += "#{feeds[rand(36)]}  "
#    line += "'#{source_feeds[rand(36)]}',"
#  end
#  puts line  
#end

#puts "password_card(0,1,2,3) == 'GMBX' is #{ "#{password_card[0][0]}#{password_card[1][1]}#{password_card[2][2]}#{password_card[3][3]}" == 'GMBX'}"

#puts "password_card(1,2,3,1) == 'UQN5' is #{ "#{password_card[0][1]}#{password_card[1][2]}#{password_card[2][3]}#{password_card[3][1]}" == 'UQN5'}"

line_codes.each_with_index do |code,index|
  line = "*#{code}*  "
  password_card[index].each do |char|
    line += "#{char} "
  end
  puts line
end